﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InformationSystem.BLL.Core.Model;
using System.Data;

namespace InformationSystem.BLL.Core.Service
{
    public interface IStudentService
    {
        event EventHandler OnupdateProgress;
        event EventHandler Complete;
        bool UpdateStudentBasicInfo(StudentInfo studentinfo);
        bool UpdateStudentCourse();
        bool ImportStudentMark(DataTable sourcedt, int coursesession);
        bool ImportStudentInfo(DataTable sourcedt,LoginUser user);
        bool DeleteStudentCourse();
        bool DeleteStudent();
        
        /// <summary>
        /// 获取学生成绩信息列表
        /// </summary>
        /// <param name="studentid"></param>
        /// <param name="user">控制此人能否获取此信息</param>
        /// <returns></returns>
        IList<StudentMark> GetStudentMarkList(string studentid, LoginUser user);

        StudentInfo GetStudentInfo(string studentid, LoginUser user);

        IList<StudentInfo> GetStudentList(string classid, LoginUser user);

        bool CreateCourse(Course course);
    }
}
